﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianShiProject.Models.CarService.Upkeeps
{
    public class UpkeepDto
    {
        public int Id { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string UpkeepNumber { get; set; }
        /// <summary>
        /// 保养标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNumber { get; set; }
        /// <summary>
        /// 保养金额
        /// </summary>
        public Decimal UpkeepMoney { get; set; }
        /// <summary>
        /// 保养负责人
        /// </summary>
        public string UpkeepManager { get; set; }
        /// <summary>
        /// 当前里程数
        /// </summary>
        public int UpkeepKM { get; set; }
        /// <summary>
        /// 当前保养日期
        /// </summary>
        public DateTime UpkeepTime { get; set; }
        public string UpkeepTimes { get { return UpkeepTime.ToString("yyyy-MM-dd"); } }
        /// <summary>
        /// 保养项目
        /// </summary>
        public string UpkeepProject { get; set; }
        /// <summary>
        /// 上次保养日期
        /// </summary>
        public DateTime ShangUpkeepTime { get; set; }
        public string ShangUpkeepTimes { get { return ShangUpkeepTime.ToString("yyyy-MM-dd"); } }
        /// <summary>
        /// 上次保养里程数
        /// </summary>
        public int ShangUpkeepKM { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        public string CreateTimes { get { return CreateTime.ToString("yyyy-MM-dd"); } }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int IsDelete { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string License { get; set; }
    }
}
